package cn.yaoud.salus.oms.alarm.feishu.bot.msg.card;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

/**
 * 折叠面板
 *
 * @author 唐彪
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class CollapsiblePanelCardElement extends CardElement {
    public CollapsiblePanelCardElement(List<CardTagContent> elements) {
        this.elements = elements;
        setTag(CardElementTagEnum.COLLAPSIBLE_PANEL.getType());
    }

    /**
     * 是否折叠
     */
    private boolean expanded;
    private CollapsiblePanelHeader header;
    @JSONField(name = "vertical_spacing")
    private String verticalSpacing = "8px";
    private String padding = "8px 8px 8px 8px";
    private List<CardTagContent> elements;
}
